<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<header>
    <style>
        div{ margin-bottom: 10px;}
    </style>
</header>
<body>

<div>
    <h1>Default:</h1>
    <div><a href="/default/gotoResult.do">Default - @RequestMapping</a></div>
    <div><a href="/default/gotoResultMethod.do">Default - @GetMapping</a></div>
    <div>
        <form action="/default/gotoResultMethod.do" method="post">
            <input type="submit" value="Default - @PostMapping">
        </form>
    </div>
</div>
<div>
    <h1>User:</h1>
    <div><a href="/user/gotoResult.do">User - @RequestMapping</a></div>
    <div><a href="http://localhost:8080/user/gotoResultMethod.do">User - @GetMapping</a></div>
    <div>
        <form action="http://localhost:8080/user/gotoResultMethod.do" method="post">
            <input type="text" name="number" value="123">
            <input type="submit" value="User - @PostMapping">
        </form>
    </div>
</div>
<div>
    <h1>Params1:Get方式提交参数</h1>
    <div><a href="/params/gotoParams1.do?id=111">Params - @GetMapping</a></div>
</div>
<div>
    <h1>Params1:Post方式提交参数</h1>
    <form action="/params/gotoParams1.do" method="post">
        <input type="text" name="number" value="111">
        <input type="submit" value="Params - Post方式提交参数">
    </form>
</div>
<div>
    <h1>Params2:Get方式提交参数</h1>
    <div><a href="/params/gotoParams2.do?id=222">Params - @GetMapping</a></div>
</div>
<div>
    <h1>Params2:Post方式提交参数</h1>
    <form action="/params/gotoParams2.do" method="post">
        <input type="text" name="number" value="222">
        <input type="submit" value="Params - Post方式提交参数">
    </form>
</div>
<div>
    <h1>Params3:Get方式提交参数(多个)</h1>
    <div><a href="/params/gotoParams3.do?number=222&price=1000">Params - @GetMapping</a></div>
</div>
<div>
    <h1>Params3:Post方式提交参数(多个)</h1>
    <form action="/params/gotoParams3.do" method="post">
        <input type="text" name="number" value="222">
        <input type="text" name="price" value="1000">
        <input type="submit" value="Params - Post方式提交参数">
    </form>
</div>
</body>
</html>
